Release 10.1A: OpenEdge Development:
Java Open Clients


Methods

The ProDataRelationMetaData class provides the following methods.

setColumns( )

Specifies the column properties that are to participate in primary-foreign key relationships between the parent and child tables of this ProDataRelationMetaData object, as specified by the overloaded methods:

Syntax
void setColumns(int parentColIdx, int childColIdx) 
void setColumns(int[] parentColIdxs, int[] childColIdxs) 

parentColIdx

Specifies the 0-based index of a single column property in the parent ProDataObject type to use as the primary key.

childColIdx

Specifies the 0-based index of a single column property in the child ProDataObject type to use as the foreign key.

parentColIdxs

Specifies an array of 0-based indexes to column properties in the parent ProDataObject type to use as the primary key.

childColIdxs

Specifies an array of 0-based indexes to column properties in the child ProDataObject type to use as the foreign key.

When specifying parentColIdxs and childColIdxs, the arrays must be the same length. For either overloading, the corresponding parent and child column properties must be comparable.

getParentColumns( )

Returns the 0-based indexes of the parent table column properties for this ProDataRelationMetaData object:

Syntax
int[] getParentColumns() 

getChildColumns( )

Returns the 0-based indexes of the child table column properties for this ProDataRelationMetaData object:

Syntax
int[] getChildColumns() 

getParentTable( )

Returns the name of the parent table for this ProDataRelationMetaData object:

Syntax
String getParentTable() 

getChildTable( )

Returns the name of the child table for this ProDataRelationMetaData object:

Syntax
String getChildTable() 

getRelationName( )

Returns the name of this ProDataRelationMetaData object:

Syntax
String getRelationName() 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095